package ru.sushka.lunch.enitiy;

import java.util.Calendar;

/**
 * 07.10.12 : 19:41
 * User: sushka
 */
public class Order implements Persistentce{
    private int id;
    private int menuItemId;
    private int customerId;
    private int count;
    private Calendar date;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customer) {
        this.customerId = customer;
    }

    public Order(int menuItemId, int customerId, int count, Calendar date) {
        this.setId(0);
        this.setMenuItemId(menuItemId);
        this.setCustomerId(customerId);
        this.setCount(count);
        this.setDate(date);
    }

    public int getMenuItemId() {
        return menuItemId;
    }

    public void setMenuItemId(int course) {
        this.menuItemId = course;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Calendar getDate() {
        return date;
    }

    public void setDate(Calendar date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Order [id=" + id + ", courseId=" + menuItemId + ", customerId="
                + customerId + ", count=" + count + "]";
    }

}
